package com.wx.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @ClassName HelloController
 * @Description
 * @Author wx
 * @Date 2019/10/28 7:18 PM
 * @Version 1.0
 */
@RestController
public class HelloController {
    @GetMapping("/hello")
    public String hello(@RequestParam String name){
        SimpleDateFormat df=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
        String format = df.format(new Date());
        return "k8s...study【"+name+"】  this time is:"+format.toString();
    }
}
